// var app = require("express")();

module.exports = function (app, mongoose) {
  app.get("/staff/status", function (req, res) {
    var Staff = mongoose.model("Staff");
    Staff.find(function (err, docs) {
      if (err) {
        console.log("err:", err);
        res.json({
          state: 0,
          msg: "数据库错误"
        });
        return
      } else {
        res.json({
          status: 1,
          data: docs
        })
        return
      }
    })
  });
}
